package atom.loader.types {
	
	/**
	 * ...
	 * @author Jorge Braccini
	 */
	public class AssetTypes {
		
		public static const MULTIMEDIA:String		= "JContentTypeMultimedia";
		public static const TEXT:String				= "JContentTypeText";
		
		private static var _types:Object = {	"jpg":		MULTIMEDIA,
												"png":		MULTIMEDIA,
												"gif":		MULTIMEDIA,
												"swf":		MULTIMEDIA,
												"txt":		TEXT,
												"rss":		TEXT,
												"xml":		TEXT
									};
		
		public static function getContentTypeByPath(path:String):String {
			return _types[path.substr(path.length - 3, 3)];
		}
		
	}

}